﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace kinectSocketController
{
    [Serializable]
    public class CmdObj
    {
        float x, y, z;
        Boolean grab;
        public float X
        {
            get { return x; }
            set { x = value; }
        }
        public float Y
        {
            get { return y; }
            set { y = value; }
        }
        public float Z
        {
            get { return z; }
            set { z = value; }
        }
        public Boolean Grab
        {
            get { return grab; }
            set { grab = value; }
        }
        public CmdObj(float x, float y, float z, Boolean grab)
        {
            this.x = x;
            this.y = y;
            this.z = z;
            this.grab = grab;
        }
        public static CmdObj operator *(CmdObj p1, float m)
        {
            return new CmdObj(p1.X*m, p1.Y*m, p1.Z*m, p1.Grab);
        }
    }
}
